package com.sunnada.demo.bean;

import com.sunnada.demo.log.annotation.LogField;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.java.Log;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Id;

/**
 * @BelongsProject: mybatisproject2
 * @BelongsPackage: com.sunnada.demo.bean
 * @Author: 李瑞益
 * @CreateTime: 2018-10-08 09:05
 * @Description: MongoDB对象
 */
@Data
@Document(collection = "dog")
public class Dog {
    /**
     * 主键
     */
    @Id
    @LogField("主键")
    private String id;
    /**
     * 名称
     */
    @LogField("名称")
    private String name;
    /**
     * 年龄
     */
    @LogField("年龄")
    private String age;


}
